package com.mla.fastdfs.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mla.fastdfs.dto.UserDto;
import com.mla.fastdfs.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Jun
 * @version v1.0
 * @date 2020-08-05
 */
public interface UserMapper extends BaseMapper<User> {

    User selectByPrimaryKey(String id);

    List<User> selectByRecord(User record);

    User getByName(String name);


    User checkUserNameExist(User record);

    List<UserDto> selectAdminByRecord(UserDto dto);

    UserDto selectById(String id);

    int adminInsert(UserDto dto);
    int adminUpdate(UserDto dto);


    void updateUser(User user);
}